package com.mingqijia.gassafety.authority.api.resp.config;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 字典信息数据
 * @author Damon S.
 * @version v1.0.1
 * @date 2021-04-18 11:09
 */
@Data
@ApiModel(value = "字典信息数据")
public class DictionaryRespDTO implements Serializable {
    @ApiModelProperty(value = "字典Id")
    private String id;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "编码")
    private String code;

    @ApiModelProperty(value = "范围")
    private List<String> scope;

    @ApiModelProperty(value = "状态")
    private Integer state;

    /** 供前端识别使用 */
    private Integer scopeType;

    /** 供前端显示使用 */
    private String scopeCn;

    @ApiModelProperty(value = "描述")
    private String description;

    @ApiModelProperty(value = "字典项")
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<DictionaryItemRespDTO> children;
}
